/**
 * json配置举例，更多配置请看 IConfigSchema
 * @author luguoxiang
 * @date 2022/7/5
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
import { IConfigSchema, LgBizSelect } from '@/soar';
import dataSourceApi from '@/pages/general/dataSource/api';

const fieldList: IConfigSchema<any>[] = [
  {
    field: 'name',
    label: '名称',
    dataType: 'string',
  },
  {
    field: 'dataSourceId',
    label: '数据源',
    dataType: 'string',
    form: {
      component: LgBizSelect,
      componentProps: {
        data: dataSourceApi.query,
      },
    },
  },
];

export default fieldList;
